<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>平库位置</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="../css/mui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="../css/app.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">入平库</h1>
		</header>
		<div class="mui-content">
			<input id="boxCodeInput" type="text" class="mui-input-clear" placeholder="托盘条码">
			<input id="loc" type="text" class="mui-input-clear" placeholder="位置">	
		</div>
		<button id="saveButton" type="button" class="mui-btn mui-btn-block mui-btn-primary">托盘位置确认</button>
	</body>
	<script src="../js/mui.js"></script>
		<script>
			mui.init(); 
			var btnArray = ['确认', '取消'];
		    document.getElementById('saveButton').addEventListener('tap', function() { 
			
				mui.confirm('确认入平库？', '提示', btnArray, function(e) {
					if (e.index == 0) {
							
							var boxCode=	document.getElementById("boxCodeInput").value
							var loc=   document.getElementById('loc').value
							mui.get("pda/pinkuIn/"+boxCode+"/"+loc+"/"+1, function(response) {
								mui.toast(response.data)
										
							}, "json");
					}  
				}); 
			}, false);
		 
		
</script>
 
</html>